Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Viewer State Flags

The Q3ViewerGetState function returns a long integer that encodes information about the current state of a viewer object. Bits of the returned long integer are addressed using these viewer state flags:

All flags with values greater than or equal to kQ3ViewerHasUndo were introduced in version 1.1 of the 3D Viewer.

enum {
    kQ3ViewerEmpty                      = 0,
    kQ3ViewerHasModel                   = 1<<0,
    kQ3ViewerHasUndo                    = 1<<1
};

Constant descriptions

kQ3ViewerEmpty
If this flag is set, there is no image currently displayed by the specified viewer object.
kQ3ViewerHasModel
If this flag is set, there is an image currently displayed by the specified viewer object.
kQ3ViewerHasUndo
If this flag is set, the viewer's camera viewpoint has been modified and can be undone. You can use this information to determine whether to enable the Undo menu item in the Edit menu. See the description of the Q3ViewerGetUndoString function [link] .

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |